package com.atguigu.exam.service;

import com.atguigu.exam.entity.Category;

import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;


public interface CategoryService extends IService<Category> {

//获取所有的分类列表,包含分类下的题目数量
    List<Category> getCategoryList();

    List<Category> getCategoryTree();

    void addCategory(Category category);

    void updateCategory(Category category);

    void deleteCategory(Long id);
}